package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.SetmealService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("report")
public class ReportController {


    @Reference
    private SetmealService setmealService;

    @RequestMapping("getsetmeal")
    @ResponseBody
    public Result getsetmeal(){
        Result result = setmealService.getsetmeal();
        return  result;
    }
}
